package com.example.demo.controller;


import com.example.demo.entity.TabClass;
import com.example.demo.service.ITabClassService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yuyongli
 * @since 2023-06-25
 */
@RestController
@RequestMapping("/tab-class")
public class TabClassController {
    @Resource
    private ITabClassService tabClassService;
    @GetMapping
    public List<TabClass> getAll(){
return tabClassService.list();//查询所有
    }
}

